#include "cnfigurine.h"

cnFigurine::cnFigurine(QWidget *parent)
{
    color = 0;
    position = 0;
    active = false;
    this->setGeometry(QRect(170, 90, 41, 91));
    this->setPixmap(QPixmap("C:\\Users\\eangel7cz\\Documents\\Skola\\Projekty\\ICP\\resources\\figurka_black.png"));
    this->setScaledContents(true);
    this->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
    this->setWordWrap(false);
    this->setParent(parent);
}

void cnFigurine::mousePressEvent(QMouseEvent *ev)
{
    emit clicked(this);
}

cnFigurine::~cnFigurine()
{
}
